##
##
## Compile libmysdl.so
##
##

SRC	= ./src/Graph.cpp

INC	= ../../inc/

NAME	= lib_nibbler_SDL.so

OBJ	= $(SRC:.cpp=.o)

RM	= rm -f

CFLAGS	= -Wall -Wextra -fPIC

LDFLAGS = -shared -lSDLmain -lSDL -lSDL_ttf -lSDL_image

%.o:	%.cpp
	$(CC) -c  $^ -o $@ -I$(INC) $(CFLAGS)

all: $(NAME)


$(NAME): $(OBJ)
	$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)


clean:
	$(RM) $(OBJ)


fclean: clean
	$(RM) $(NAME)

re: fclean all
